package main

import (
	"common"
	"github.com/gin-gonic/gin"
)

func main() {

	engine := gin.Default()

	common.InitETCD("demo3", "127.0.0.1", 8083, "1")
	engine.GET("/demo3/test", func(context *gin.Context) {
		context.JSON(200, gin.H{
			"message": "demo3 的Get 的请求",
		})
	})
	engine.POST("/demo3/test", func(context *gin.Context) {
		context.JSON(200, gin.H{
			"message": "demo3 的Post 的请求",
		})
	})
	engine.Run(":8083")

}
